<template>
  <div class="container">
    <van-sticky>
      <van-nav-bar
        :title="title"
        left-arrow
        @click-left="onClickLeft"
      >
        <template slot="right">
          <van-icon name="ellipsis" size="22" />
        </template>
      </van-nav-bar>
    </van-sticky>
  </div>
</template>

<script>
export default {
  name: 'CommonHead',
  props: {
    title: {
      type: String
    }
  },
  methods: {
    onClickLeft () {
      this.$router.go(-1)
    }
  }
}
</script>

<style lang="scss" scoped>

</style>
